<?php if (count($news) > 0): ?>
    <div class="row-fluid">
        <div class="content">
            <ul class="list_pro">
                <?php
                foreach ($news as $new):
                $uri = get_base_url() . url_title(trim($new->category), 'dash', TRUE) . '/' . url_title(trim($new->title), 'dash', TRUE) . '-n' . $new->cat_id . '-' . $new->id;
                $thumbnail = ($new->thumbnail != '') ? $new->thumbnail : '/images/noimage.jpg';
                ?>
                <li class="list_pro1">
                    <div class="list_pro6">
                        <img class="list_pro3 thumbnail fix_w" src="<?php echo $thumbnail;?>" alt="<?php echo $new->title;?>" title="<?php echo $new->title;?>">
                        <a class="mask" href="<?php echo $uri;?>"></a>
                        <img class="view" src="/images/view.png">
                    </div>
                    <p>
                        <a href="<?php echo $uri;?>" class="list_pro4">
                            <?php echo $new->title;?>
                        </a>
                    </p>
                    <p class="list_pro5">
                        <?php echo shorten_str($new->summary, MAXLENGHT_PROJECT_DESCRIPTION);?>
                    </p>
                    <p class="pull-right"><a href="<?php echo $uri;?>" class="more"><?php echo __('IP_detail');?></a></p>
                </li>
                <?php endforeach;?>
            </ul>
            <?php
            echo (isset($pagination) && trim($pagination) != '') ? '<div class="pagination">' . $pagination . '</div>' : '';
            ?>
        </div>
    </div>
<?php endif; ?>